
<template>
  <div>
    <button  @click="active='cart'">cart</button>
    <button  @click="active='hello'">hello</button>

  </div>
  <Cart  v-if="active=='cart'" />
  <HelloWorld v-if="active=='hello'" msg="Vite + Vue" />
</template>


<script setup lang="ts">
import { ref } from 'vue'
import HelloWorld from './components/HelloWorld.vue'
import Cart from './Cart.vue'


const active = ref('cart')
 
</script>



<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
